package cn.pping.basic.util;

import lombok.Data;

@Data
public class JsonResult {
    private String msg = "操作成功";

    private boolean success = true;

    private Object resultObj;


    /**
     * @Title: me 返回一个方法写me
     * @Description: TODO
     * @Author: Pan
     * @Version: 1.0
     * @Date: 2022/7/17 10:15
     * @Parameters: []
     * @Return cn.pping.basic.util.JsonResult
     */


    public static JsonResult me() {
        return new JsonResult();
    }

    public  JsonResult setMsg(String msg) {
        this.success = false;
        this.msg = msg;
        return this;

    }
    public  JsonResult setResultObj(Object msg) {
        this.resultObj = msg;
        return this;

    }

}
